package m202406.d28;

/**
 * @@author: 爱做梦的锤子
 * @date: 2024/6/28 22:43
 */
public class Q172 {
    public int trailingZeroes(int n) {
        int res = 0;
        for (int i = 5; i <= n; i++) {
            int j = i;
            while (j % 5 == 0) {
                res++;
                j = j / 5;
            }
        }
        return res;
    }
}
